<template>
  <div class="datav_outstanding">
    <div class="datav_outstanding_img">
      <img src="./../../assets/img/index/datav_part_bj.png" alt />
    </div>
    <div class="datav_outstanding_content">
      <p class="datav_part_title">订单业绩数据</p>
      <div class="datav_outstanding_info">
        <div class="datav_outstanding_info_item">
          <p>订单笔数</p>
          <p>
            <span style="color:#52ffff">{{dataInfo.order_number}}</span>
          </p>
        </div>
        <div class="datav_outstanding_info_item">
          <p>订单金额</p>
          <p>
            <span style="color:#1870bb">{{$fnc.toFixedZ(dataInfo.order_money)}}</span>元
          </p>
        </div>
        <div class="datav_outstanding_info_item">
          <p>下单用户量</p>
          <p>
            <span style="color:#f53f8c">{{dataInfo.order_user_number}}</span>
          </p>
        </div>
      </div>
      <div class="datav_outstanding_month">
        <div class="datav_outstanding_month_item" v-for="(item,i) in dataInfo.month_lists" :key="i">
          <p>{{item.money}}</p>
          <p>{{item.month.slice((item.month.indexOf("-")+1),item.month.length)}}月</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "datav_top",
  data() {
    return {};
  },
  props:{
    dataInfo: {
      type: Object,
      default: {}
    }
  },
  components: {},
  methods: {}
};
</script>
<style lang="less" scoped>
.datav_outstanding {
  width: 100%;
  position: relative;
  .datav_outstanding_img {
    width: 100%;
    img {
      // width: 100%;
      height: 100%;
    }
  }
  .datav_outstanding_content {
    width: 100%;
    padding: 10px 20px 30px 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-flow: column;
    .datav_outstanding_info {
      width: 100%;
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      .datav_outstanding_info_item {
        width: 33%;
        margin: 0 auto;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        > p:nth-of-type(1) {
          @media only screen and (min-width: 1680px) and (max-width: 1920px) {
            font-size: 16px;
          }
          @media only screen and (min-width: 1440px) and (max-width: 1680px) {
            font-size: 12px;
          }
          @media only screen and (min-width: 1024px) and (max-width: 1440px) {
            font-size: 10px;
          }
          @media only screen and (max-width: 1024px) {
            font-size: 8px;
          }
          color: #ffffff;
        }
        > p:nth-of-type(2) {
          @media only screen and (min-width: 1680px) and (max-width: 1920px) {
            font-size: 14px;
          }
          @media only screen and (min-width: 1440px) and (max-width: 1680px) {
            font-size: 12px;
          }
          @media only screen and (min-width: 1024px) and (max-width: 1440px) {
            font-size: 10px;
          }
          @media only screen and (max-width: 1024px) {
            font-size: 8px;
          }
          color: #1c6285;
          display: flex;
          justify-content: center;
          align-items: flex-end;
          padding-top: 10px;
          > span:nth-of-type(1) {
            @media only screen and (min-width: 1680px) and (max-width: 1920px) {
              font-size: 32px;
            }
            @media only screen and (min-width: 1440px) and (max-width: 1680px) {
              font-size: 28px;
            }
            @media only screen and (min-width: 1024px) and (max-width: 1440px) {
              font-size: 22px;
            }
            @media only screen and (max-width: 1024px) {
              font-size: 12px;
            }
            font-size: 32px;
            line-height: 1;
            color: #52ffff;
            margin-right: 3px;
          }
        }
      }
    }
    .datav_outstanding_month {
      width: 100%;
      height: 30%;
      font-size: 14px;
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
      .datav_outstanding_month_item {
        width: 14%;
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        border: 1px solid #217195;
        > p:nth-of-type(1) {
          font-size: 14px;
          color: #ffffff;
        }
        > p:nth-of-type(2) {
          font-size: 14px;
          color: #677091;
        }
      }
    }
  }
}
</style>
